﻿@using CNKI.TPI.Web.Search.Model;
@using CNKI.TPI.Web.Base;
@model IList<SYS_CMS_OPTION>
@{
    ViewBag.Title = "论文提交";
}
<script>
    function submitInfo(dbcode, dbname,flage) {
        //if (flage == 0) {
        //    messageAlert("您没有在线提交权限！");
        //    return;
        //}
        var url = "@Html.Raw(Url.Action("index", "SubmitOnline"))?dbCode=" + dbcode + "&displayDBName=" + escape(dbname);
        window.location.href = url;
    }
</script>
<div class="wrap wrap-i detail-con clearfix mh">
    <div class="center-box posr">
        <h2 class="bbsolid bbsolidw2 mb10"><i class="blue-block"></i><span class="center-box-h-span2">提交的数据库</span></h2>
        <ul class='clearfix'>
            @if (Model == null || Model.Count() == 0)
            {
                <li class="li-bg col-md-4">暂无数据</li>
            }
            else
            {
                foreach (var item in Model)
                {
                <li class="li-bg col-md-4">
                    <a onclick=" submitInfo('@item.DbCode','@item.DbName','@item.HasSubmitRight')"  href="javascript:void(0)">@item.DbName</a></li>
                    // <li class="li-bg col-md-4"><a  href="~/SubmitOnline/index?DbCode=@item.DbCode&displayDBName=@Server.UrlEncode(item.DbName)">@item.DbName</a></li>
                }

            }
        </ul>
    </div>
</div>

